﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace test
{
    class Program
    {
        static void Main(string[] args)
        {
            int numOfValue = 0;
            string strSource = " 4 5  31.8  6   5.6  7  27.9 15  93.8 ";
            strSource = strSource.Trim();

            numOfValue = Convert.ToInt32(strSource[0].ToString());

            strSource = strSource.Remove(0, 1);

            string[] strArray = new string[numOfValue];

            string[] strArray01;

            for (int i = 0; i < numOfValue; i++)
            {
                strSource = strSource.Trim();
                strArray[i] = strSource.Substring(0, 8);
                strSource = strSource.Remove(0, 8).Trim();

                strArray01 = strArray[i].Split(' ');

                Console.WriteLine(strArray01[0]);

                for (int j = 1; j < strArray01.Length; j++)
                {
                    if (strArray01[j].Trim() != string.Empty)
                    {
                        Console.WriteLine(strArray01[j]);
                    }
                }

                //Console.WriteLine(strArray[i]);
                //Console.WriteLine(strArray01[0] + " - " + strArray01[strArray01.Length - 1]);
            }

             

            Console.ReadLine();
        }
    }
}
